<template>
	<div class="progress" :style="{height:height + 'rem'}">
		<span class="rate" :style="{width:rate + '%',background:color}"></span>
	</div>
</template>

<script>
export default {
	props:["rate","height","color"],
	data () {
		return {
			
		}
	},
}
</script>

<style lang="scss" scoped>
	.progress{
		position: relative;
		width: 100%;
		background-color: #eee;
		border-radius: 12px;
		overflow: hidden;
	}
	.progress .rate{
		position: absolute;
		left: 0;
		top: 0;
		bottom: 0;
		height: 100%;
		background-color: red;
	}
</style>